import { Routes } from '@angular/router';
import { LayoutComponent } from './layout/layout.component';

export const routes: Routes = [
  {
    path: '', pathMatch: 'full', redirectTo: '/layout',
  },
  {
    path: 'layout',
    component: LayoutComponent,
    children: [
      { path: 'welcome', loadChildren: () => import('./pages/welcome/welcome.routes').then(m => m.WELCOME_ROUTES) },
      { path: 'client', loadChildren: () => import('./pages/client/client.routes').then(m => m.CLIENT_ROUTES) },
      { path: 'sales', loadChildren: () => import('./pages/sales/sales.routes').then(m => m.SALES_ROUTES) },
    ]
  }
];
